package com.gitee.baqkft.code.core.test;

import com.gitee.baqkft.code.core.util.StringUtils;

import junit.framework.TestCase;

/**
 * 字符串工具单元测试
 * @author chenmingcai
 * @date 2018年5月21日 下午2:28:42 
 *
 */

public class StringUtilsTestCase extends TestCase
{
	public void testToCamelString()
	{
		String text = "china_wild_animal";
		String target = "chinaWildAnimal";
		assertEquals(target, StringUtils.toCamelString(text));
	}
	
	public void testToPascalString()
	{
		String text = "china_wild_animal";
		String target = "ChinaWildAnimal";
		assertEquals(target, StringUtils.toPascalString(text));
	}
}
